﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="UpdateAccount.aspx.cs" Inherits="Default2" Title="WDPA: Update Account Details" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <br />
    <div class="span-8">
        &nbsp;</div>
    <div class="span-10">
        <table width="100%" cellpadding="5" cellspacing="0" border="0" style="text-align: center;">
            <tr>
                <td>
                    <div id="divChangePassword" runat="server" visible="false">
                        <p>
                            For security purposes, please could you update your password.</p>
                        <table width="50%" cellpadding="0" cellspacing="0" border="0" style="text-align: center;">
                            <tr>
                                <td style="text-align: left;">
                                    New Password:
                                </td>
                                <td style="text-align: left;">
                                    <asp:TextBox ID="tbNewPassword1" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbNewPassword1"
                                        ErrorMessage="Required"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: left;">
                                    Confirm Password:
                                </td>
                                <td style="text-align: left;">
                                    <asp:TextBox ID="tbNewPassword2" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbNewPassword2"
                                        ErrorMessage="Required"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="tbNewPassword1"
                                        ControlToValidate="tbNewPassword2" Display="Dynamic" ErrorMessage="The Password and Confirm Password must match."></asp:CompareValidator>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" style="text-align: center;">
                                    <br />
                                    <asp:Button ID="btnUpdatePassword" runat="server" Text="Update" OnClick="btnUpdatePassword_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="divSuccessPasswordChange" runat="server" visible="false">
                        <table width="80%" cellpadding="0" cellspacing="0" border="0" style="text-align: left;">
                            <tr>
                                <td>
                                    <p>
                                        Thank you. Your account has been updated. Please login with your new password.</p>
                                    <p>
                                        The WDPA Team.</p>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="divAccountNotActivated" runat="server" visible="false">
                        <table width="80%" cellpadding="0" cellspacing="0" border="0" style="text-align: left;">
                            <tr>
                                <td>
                                    <p>
                                        Our records show that your account is not yet activated. A new activation email
                                        has been sent to your email address. Please follow the link in this email to activate
                                        your account. You will not be able to login to the WDPA until your account has been
                                        activated.</p>
                                    <p>
                                        The WDPA Team.</p>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div class="span-6 last">
        &nbsp;</div>
</asp:Content>
